package demo.collision;

import static org.lwjgl.opengl.GL11.GL_DEPTH_TEST;
import static org.lwjgl.opengl.GL11.GL_LEQUAL;
import static org.lwjgl.opengl.GL11.glDepthFunc;
import static org.lwjgl.opengl.GL11.glEnable;
import engine.core.OpenGLView;

public class CollisionDemo extends OpenGLView {
	
	public CollisionDemo(String title) {
		super(title, 1024, 768, 3, 3);
	}
	
	@Override
	public void init() {
		glEnable(GL_DEPTH_TEST);
		glDepthFunc(GL_LEQUAL);
	}

	public static void main(String[] args) {
		CollisionDemo collisionDemo = new CollisionDemo("Collision demo");
		collisionDemo.addScene(new CollisionScene("main-scene"));
		collisionDemo.setCurrentScene("main-scene");
		new Thread(collisionDemo).start();
	}
}
